package cn.kgc.controller;

import cn.kgc.pojo.Jobposting;
import cn.kgc.service.JobpostingService;
import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class JobpostingController {
    @Reference
    private JobpostingService jobpostingService;
    @RequestMapping("/selectAll.json")
    public List<Jobposting> selectAll(){
        return jobpostingService.findAll();
    }
}
